package com.ghy.seckill.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ghy.seckill.entity.SmsSeckillSkuRelation;
import com.ghy.seckill.service.SmsSeckillSkuRelationService;
import com.ghy.seckill.mapper.SmsSeckillSkuRelationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*
*/
@Service
public class SmsSeckillSkuRelationServiceImpl extends ServiceImpl<SmsSeckillSkuRelationMapper, SmsSeckillSkuRelation>
implements SmsSeckillSkuRelationService{
    @Autowired
    private SmsSeckillSkuRelationMapper smsSeckillSkuRelationMapper;

    @Override
    public List<SmsSeckillSkuRelation> getGameSku(Long pid) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("promotion_session_id",pid);
        List list = smsSeckillSkuRelationMapper.selectList(queryWrapper);
        return list;
    }
}
